package myhashtable;

public class Node {

    private String key;
    private Object obj;
    private Node next;

    public Node() {
        this.key=null;
        this.obj=null;
        this.next=null;
    }

    public Node(String key, Object obj) {
        this.key = key;
        this.obj = obj;
        this.next=null;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node node) {
        this.next = node;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
